﻿/*
fill_options.sqf
*/

_herbe = [];
_herbe set [0, localize "STR_OPTIONS_HERBE_0"];
_herbe set [1,localize "STR_OPTIONS_HERBE_1"];
_herbe set [2,localize "STR_OPTIONS_HERBE_2"];

disableSerialization;
_display = uiNamespace getVariable "OPTIONS_DIALOG";
_control = _display displayCtrl 4684;

lbClear _control;

{
	call compile format ["_index = _control lbAdd ""%1 m"";", _x];
} forEach ViewDistanceValues;

_control lbSetCurSel CONFIG_Default_ViewDistance;


_control = _display displayCtrl 4685;

lbClear _control;

{
	call compile format ["_index = _control lbAdd ""%1"";", _x];
} forEach _herbe;

_control lbSetCurSel CONFIG_Default_Grass;
